package com.dkd.easybook.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dkd.easybook.domain.EbAttachments;

/**
 * 用户附件Service接口
 * 
 * @author itheima
 * @date 2024-12-12
 */
public interface IEbAttachmentsService extends IService<EbAttachments>
{
    /**
     * 查询用户附件
     * 
     * @param attachmentId 用户附件主键
     * @return 用户附件
     */
    public EbAttachments selectEbAttachmentsByAttachmentId(EbAttachments ebAttachments);

    /**
     * 查询用户附件列表
     * 
     * @param ebAttachments 用户附件
     * @return 用户附件集合
     */
    public List<EbAttachments> selectEbAttachmentsList(EbAttachments ebAttachments);

    /**
     * 新增用户附件
     * 
     * @param ebAttachments 用户附件
     * @return 结果
     */
    public int insertEbAttachments(EbAttachments ebAttachments);

    /**
     * 修改用户附件
     * 
     * @param ebAttachments 用户附件
     * @return 结果
     */
    public int updateEbAttachments(EbAttachments ebAttachments);

    /**
     * 批量删除用户附件
     * 
     * @param attachmentIds 需要删除的用户附件主键集合
     * @return 结果
     */
    public int deleteEbAttachmentsByAttachmentIds(Long[] attachmentIds);

    /**
     * 删除用户附件信息
     * 
     * @param attachmentId 用户附件主键
     * @return 结果
     */
    public int deleteEbAttachmentsByAttachmentId(Long attachmentId);
    //参数为ids，查询附件列表
    List<EbAttachments> selectEbAttachmentsListByIds(List<EbAttachments> listEbAttachments);
}
